package com.gxa.user.recycling.service.impl;

import com.gxa.core.recycling.pojo.GetCycle;
import com.gxa.core.recycling.pojo.Imgs;
import com.gxa.core.recycling.service.impl.BaseServiceImpl;
import com.gxa.user.recycling.repository.ImagesRepository;
import com.gxa.user.recycling.service.GetCycleService;
import com.gxa.user.recycling.service.ImgsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author xhy
 * @Date 2021/12/2 10:22
 */
@Service("imgsService")
@Transactional(rollbackFor = {Throwable.class})
public class ImgsServiceImpl extends BaseServiceImpl<Imgs> implements ImgsService {
    @Autowired
    ImagesRepository imagesRepository;

    @Override
    public List<Imgs> selectByGid(Long gid) {
        List<Imgs> imgsByGidEquals = imagesRepository.findImgsByGidEquals(gid);
        return imgsByGidEquals;
    }
}
